<?php
if ( !defined('IN_SEC') ){exit();}
?>
<?php if(!$_G['gp_pjax']){?>
				<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; 选择皮肤</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> 固定导航条</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs">固定面包屑</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container">
								切换窄屏
								<b></b>
							</label>
						</div>
					</div>
				</div><!-- /#ace-settings-container -->
			</div><!-- /.main-container-inner -->

			<a href="javascript:void(0);" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<!--[if !IE]> -->

		<script src="/static/ace/assets/js/jquery-2.0.3.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src=\"/static/ace/assets/js/jquery-2.0.3.min.js\">"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='/static/ace/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/static/ace/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="/static/ace/assets/js/bootstrap.min.js"></script>
		<script src="/static/ace/assets/js/typeahead-bs2.min.js"></script>
		<script src="/static/ace/assets/js/jquery.gritter.min.js"></script>
		<link rel="stylesheet" href="/static/ace/assets/css/jquery.gritter.css" />
		<!-- page specific plugin scripts -->

		<!-- ace scripts -->

		<script src="/static/ace/assets/js/ace-elements.min.js"></script>
		<script src="/static/ace/assets/js/ace.min.js"></script>

		<!-- bootbox -->
		<script src="/static/ace/assets/js/bootbox.min.js"></script>
		<script src="/static/derek/core.js"></script>
		<script>
			D.Notification = {
				init : function(){
					if( window.webkitNotifications ){
						D.Notification.show();
					}
				},
				check : {
					permission : function(callback){
						window.webkitNotifications.requestPermission(callback);
					}
				},
				show : function(){
					if ( window.webkitNotifications.checkPermission() > 0 ) {
						D.Notification.check.permission(D.Notification.show);
					}else{
						var notification = window.webkitNotifications.createNotification("http://images.cnblogs.com/cnblogs_com/flyingzl/268702/r_1.jpg", id, '内容'+new Date().getTime());
						notification.display = function() {}
						notification.onerror = function() {}
						notification.onclose = function() {}
						notification.onclick = function() {}
//						notification.replaceId = id;
				
						notification.show();
					}
				}
			}
			D.Notice = {
				init : function(){
<?php if($notice = Session::Get('notice', true)){?>
					$.gritter.add({
						// (string | mandatory) the heading of the notification
						title: '通知',
						// (string | mandatory) the text inside the notification
						text: '<?php echo $notice; ?>',
						class_name: 'gritter-success gritter-light'
					});
<?php }?>
<?php if($notice = Session::Get('error', true)){?>
					$.gritter.add({
						// (string | mandatory) the heading of the notification
						title: '警告',
						// (string | mandatory) the text inside the notification
						text: '<?php echo $notice; ?>',
						class_name: 'gritter-error gritter-light'
					});
<?php }?>
				}
			}
        </script>
<?php if($admincp->adminid == 1){?>
<?php $debuginfo = debuginfo();; ?>
<!--{
    <?php print_r($debuginfo); ?>
    <?php print_r(DB::Querys()); ?>
}-->
<?php }?>
<?php }?>